<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./lib/vue.min.js"></script>
</head>
<body>
    <div id="app">
    <p v-for = "(item,index) in list">用户索引为:{{ index }}---用户id为:{{ item.id }},用户姓名为:{{item.name}}</p>
    </div>
    
    <script>
        var vm = new Vue({
            el:"#app",
            data:{
                list:[
                    {id: 1, name:"张三"},
                    {id: 2, name:"李四"},
                    {id: 3, name:"王五"},
                    {id: 4, name:"赵六"},
                ]
            },
            methods: {}
        })
    </script>
</body>
</html>